package com.itzou.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itzou.domain.SysLog;
import com.itzou.mapper.SysLogMapper;
import com.itzou.service.SysLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class SysLogServiceImpl implements SysLogService {

    private final SysLogMapper sysLogMapper;

    @Override
    public Page<SysLog> findByPage(Integer pageNo, Integer pageSize) {
        Page<SysLog> page = new Page<>(pageNo, pageSize);
        return sysLogMapper.selectPage(page, null);
    }
}
